package com.five.controller.reception;

import com.five.dao.backstage.QianTaiDao;
import com.five.dao.reception.ReserveDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.Map;

/**
 * @Author: 王登峰
 * @Description:
 * @Date: 2020/12/6 12:24
 */
@RestController
@RequestMapping("/reserve")
public class ReserveController {
    @Autowired
    ReserveDao reserveDao;
    @RequestMapping("/selectOrderByTel")
    @ResponseBody
    public List<Map> selectAll(Integer tel){
        return reserveDao.selectOrderBytel(tel);
    }
    @RequestMapping("/selectruzhuid")
    @ResponseBody
    public List<Map> selectRuzhuid(String orderid){
        return reserveDao.selectRUzhuid(orderid);
    }
    @RequestMapping("/selectorderByTime")
    @ResponseBody
    public List<Map> selectOrderByTime(Integer id, String time) throws ParseException {
        return reserveDao.selectOrderBytime(id,time);
    }
}
